{extend name='table'}


{block name="content"}
<div class="layui-tab layui-tab-card">

    <div class="layui-tab-content">
        {include file='user_gold_show/index_search'}
        <table id="GoldTable" data-url="{:sysuri('index')}" data-target-search="form.form-search"></table>
    </div>
</div>
<script>


    $(function () {
        $('#GoldTable').layTable({
            even: true, height: 'full',
            cols: [[
                {field: 'user_name', title: '{:lang("名字")}', minWidth: 100, align: 'center'},
                {field: 'class_name', title: '{:lang("班级")}', minWidth: 100, align: 'center'},
                {field: 'task_name', title: '{:lang("课程")}', minWidth: 100, align: 'center'},
                {field: 'total_gold', title: '{:lang("分数")}', minWidth: 100, align: 'center'},
                {toolbar: '#goldtool', title: '{:lang("操作面板")}', align: 'center', minWidth: 250, fixed: 'right'}

            ]]
        });


    });
</script>

<script type="text/html" id="goldtool">

    <!--{if auth("info")}-->
    <a class="layui-btn layui-btn-sm"   data-title="{:lang('详情')}" data-area="['950px', '850px']" data-modal='{:url("info")}?index_user_id={{d.index_user_id}}&task_id={{d.task_id}}&class_id={{d.class_id}}'>{:lang('详情')}</a>
    <!--{/if}-->

</script>

{/block}
